package org.qfedu.edu.service;

public class NetworkService implements INetworkService{

    private  String host;
    private Integer port;

    public NetworkService(String host,Integer port){
        this.host = host;
        this.port = port;
    }

    public NetworkService() {
    }

    public void setHost(String host) {
        this.host = host;
    }

    public void setPort(Integer port) {
        this.port = port;
    }


    @Override
    public void print() {
        System.out.println("host:"+host+",port:"+port);
    }
}
